Skip to content

Conversation

@FBruzzesi
Copy link
Collaborator

Description

Hotfix to properly cloning kwargs in estimator __init__. This is both a bug fix and a breaking change!

Fixes #692

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the style guidelines (ruff)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (also to the readme.md)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added tests to check whether the new feature adheres to the sklearn convention
  • New and existing unit tests pass locally with my changes

("discrete", Pipeline([
("grab", ColumnSelector("diet")),
("encode", OneHotEncoder(categories="auto", sparse=False))
("encode", OneHotEncoder(categories="auto"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kwarg name changed in one of the latest versions, unrelated to PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@koaning there you go! 😇🙌🏼

@FBruzzesi FBruzzesi requested a review from koaning August 4, 2024 21:16
Copy link
Owner

@koaning koaning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It always surprises me how small edits can suddenly demand a change in so many files 😅

@koaning koaning merged commit f25377d into main Aug 6, 2024
@FBruzzesi FBruzzesi deleted the patch/clone-kwargs branch August 6, 2024 20:53
@FBruzzesi
Copy link
Collaborator Author

It always surprises me how small edits can suddenly demand a change in so many files 😅

Wait until a tiny tiny change to support pyarrow via narwhals will become a rework 🙈

As soon as we make a new Narwhals release I should be able to open the PR, yet I would like to wait for pyarrow shift PR to be merged so that also add_lags should be able to operate with pyarrow tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] regression in grouped estimator

3 participants